package com.sunlands.qdcy.tongzhuo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;

/**
 * @author gaoyanfeng
 * @title: UserFriendInfo
 * @date 2019/4/1511:47
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@JsonSerialize
@DynamicUpdate
@DynamicInsert
@ApiModel(value = "关注相关信息")
public class UserFollowInfo {

    @Id
    @GeneratedValue
    @ApiModelProperty(value = "不需要关注，忽略")
    private Long id;

    private Long userId; //主人
    private Long followUserId; //主人的关注
    private String followUserNickName; //
    private String followUserAvatar; //

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private String followUserZhiye;
    private String followUserZhuanye;

    @ApiModelProperty(value = "0 已关注 1 互相关注 2 好友")
    @Transient
    private Integer followType; //0 已关注 1 互相关注 2 好友

    private Integer followUserAge;

    @ApiModelProperty(value = "性别 0 男 1 女")
    private Integer followUserSex;
}
